package cn.cqnu.exception;

import cn.cqnu.global.SystemReturnEnum;
import lombok.Data;

/**
 * 参数异常
 *
 * @author Wei
 * @date 2024/01/20
 */
@Data
public class ParamsException extends RuntimeException {

    private Integer code;

    private String message;

    public ParamsException(SystemReturnEnum en) {
        this.code = en.getCode();
        this.message = en.getMessage();
    }

}
